package chapter5.Application_Events;

import org.springframework.context.ApplicationListener;

public class MessageEventListener implements ApplicationListener<MessageEvent> {

	@Override
	public void onApplicationEvent(MessageEvent arg0) {
		MessageEvent event = (MessageEvent) arg0;
		System.out.println("Received : " + event.getMessage());
	}

}
